File compatibility is used to define how IE compiles your Web pages. This file explains file compatibility, how to specify the file compatibility mode for your site, and how to determine which file mode a Web page uses.ObjectiveTo help ensure that
Browser
First, detect the name of the browserProblem:The standard support for JavaScript is different for different browsers, and sometimes you want the script to work well on different browsers, and then you need to detect the browser, determine
Javascript| Browser
First, detect the name of the browserProblem:The standard support for JavaScript is different for different browsers, and sometimes you want the script to work well on different browsers, and then you need to detect the browser,
HTML to determine IE version 1.[if! ie]> -can be recognized except IE -2.[If ie]> all IE recognizable -3.[If IE 5.0]> only IE5.0 can be identified -4.[If IE 5]> only IE5.0 and IE5.5 can be identified -5.[If GT IE 5.0]> IE5.0 and IE5.0 above can
To determine whether IE browser with window.navigator.userAgent, tracking this information, found in the development environment, identified as IE10, but the access server is identified as IE11, but IE11 useragent is not MSIE logo, the reason is
This article mainly introduces the js quick judgment IE browser (compatible with IE10 and IE11) that is recommended for reading, because ie11 has canceled the judgment of many lower versions and many js files need to be modified, here is a brief
Traditionally, the User-agent detection method is used to detect the exact model of the target browser, including the name and version of the browser. is actually a string, obtained with Navigator.useragen or navigator.appname. As follows:
function
In the process of learning and applying Web standard Web pages, the compatibility of Web pages to browsers is a problem that is often contacted. Because Microsoft's Internet Explorer (IE) occupy the majority of the browser market, in addition to
The Navigator object contains basic information about the Web browser (such as name, version, operating system, etc.)
You can refer to the object by Window.navigator and use its properties to read the client base information
5 Main properties of
In many cases, we generally use navigator.useragent and regular expression to determine the version of IE browser, the following describes the different features in IE browser to determine the Internet Explorer1 Judging IE browser and non-IE
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.